<template>
  <Poptip trigger="hover" popper-class="t-poptip-wrap" :transfer="true">
    <span>{{ text }}</span>
    <div class="t-poptip" slot="content">
      <p v-for="(item, index) in content" :key="index">
        {{ item.key }}：{{ item.value }}
      </p>
    </div>
  </Poptip>
</template>

<script>
  export default {
    name: 'tablePoptip',
    props: {
      text: {
        default: ''
      },
      content: {
        default: [],
        type: Array
      }
    },
    data () {
      return {

      }
    }
  }
</script>

<style lang="scss">
  .loan-data {
    .ivu-poptip {
      display: block;
    }
    .ivu-poptip-rel {
      display: block;
    }
  }
</style>
